package org.streets.eis.ext.analysis.entities;

import org.streets.database.datadict.TableDefinition;

public class JoinTable {
	
	private TableDefinition tableDef;
	private String alias;
	private Boolean allShow;
	private String restrictions;
	

	public JoinTable(){
		this.allShow = false;
	}

	public JoinTable(TableDefinition tableDef,String alias , Boolean allShow) {
		this.tableDef = tableDef;
		this.allShow = allShow;
		this.setAlias(alias);
	}
	
	
	public JoinTable(TableDefinition tableDef) {
		this.tableDef = tableDef;
		this.allShow = false;
	}
	
	public void setTableDef(TableDefinition tableDef) {
		this.tableDef = tableDef;
	}
	
	public TableDefinition getTableDef() {
		return tableDef;
		
	}

	public void setAllShow(Boolean allShow) {
		this.allShow = allShow;
	}

	public Boolean getAllShow() {
		return allShow;
	}
	
	public Boolean isAllShow() {
		return allShow;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	public String getAlias() {
		return alias;
	}

	public void setRestrictions(String restrictions) {
		this.restrictions = restrictions;
	}

	public String getRestrictions() {
		return restrictions;
	}
}
